import http from '../../utils/httpsz.js'
/**
 * 请求名称 用请求地址的最后一个‘/’后面的单词命
 * 调用  import {getAPI,postAPI,putAPI,deleteAPI} from '@/api/TestSz.js/'
 *
 * 请求 then 返回正确  err 错误返回
 *   getAPI()
 *                 .then(res=>{
 *                     console.log(res)
 *                 })
 *                 .catch(err=>{
 *
 *                 })
 */

/*请求名称 用请求地址的最后一个‘/’后面的单词命*/
export function getCategory(params){
    return http.get(`/cfg/getCategory`,params)
}
export function list(params){
    return http.get(`/feemanage/remind/list`,params)
}
export function alarmsetlist(params){
    return http.get(`/feemanage/remind/alarmsetlist`,params)
}
export function add(params){
    return http.post(`/feemanage/remind/add`,params)
}
export function edit(params){
    return http.post(`/feemanage/remind/edit`,params)
}
export function remove(params){
    return http.delete(`/feemanage/remind/remove/`+params)
}
export function getAlarmSetInfo(params){
    return http.get(`/feemanage/remind/getAlarmSetInfo`,params)
}

// get请求
export function getAPI(params){
    return http.get(`/getAPI`,params)
}
//post 请求
export function postAPI(params){
    return http.post(`/postAPI`,params)
}
// put 请求
export function putAPI(params){
    return http.put(`/putAPI`,params)
}
// delete 请求
export function deleteAPI(params){
    return http.delete(`/deleteAPI`,params)
}